/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Formas;

import java.awt.Graphics;

/**
 *
 * @author Pedro
 */
public class PoligonoPreenchido extends Poligono
{
    public PoligonoPreenchido(int [] pontosX, int [] pontosY, int n)
    {
       super(pontosX,pontosY,n);
    }

    @Override
    public Forma drawForma(Graphics g) {
        g.setColor(g.getColor());
        g.fillPolygon(super.getPoligono());
        return this;
    }


}
